#ifndef IMAGELOCATION_H_
#define IMAGELOCATION_H_

#include <e32cmn.h>

class THcImageLocation
{
public:
	enum THcLocationType
	{
		ELTFileGeneral,
		ELTFileMbm,
		ELTFileSvg,
		ELTAppIcon,
		ELTGradient,
		ELTSkin,
		ELTFrame,
		ELTIcon
	};
public:
	THcLocationType iType;
	TFileName iFileName;
	TInt iIndex1;
	TInt iIndex2;
	TInt iIndex3;
	TBool iValid;
	
	THcImageLocation()
	{
		iFileName.Zero();
		iIndex1 = 0;
		iIndex2 = 0;
		iIndex3 = 0;
		iType = ELTFileGeneral;
		iValid = EFalse;
	}
	TBool operator==( const THcImageLocation& aLocation) const
	{
		return iType==aLocation.iType
			&& iIndex1==aLocation.iIndex1 
			&& iIndex2==aLocation.iIndex2
			&& iIndex3==aLocation.iIndex3
			&& iFileName.Compare(aLocation.iFileName)==0;
	}
	
	void ParseImageSrc(const TDesC& aURL);
};
#endif /*IMAGELOCATION_H_*/
